'''
Created on 4/03/2013

@author: Jorge
'''

class DatasetTransformation(object):
    '''
    classdocs
    '''
        
    def apply_transformation(self, X):
        return self.transformation(X)
        
    def transformation(self, X):
        raise NotImplementedError( "transformation method not implemented" )
    
    def __get_X_set(self, training_set, test_set):
        l_training = len(training_set)
        l_test = len(test_set) 
        temp = []
        temp.extend( [e.get_vector_X() for e in training_set])
        temp.extend([e.get_vector_X() for e in test_set])
        return temp, (l_training, l_test)